package com.example.newsapp.ui.screens.mainScreens

import androidx.compose.foundation.layout.Column
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.LocalContext
import androidx.navigation.compose.rememberNavController
import com.example.newsapp.data.compositionLocal.LocalDrawerEnabled
import com.example.newsapp.data.compositionLocal.LocalNavControllerPicture
import com.example.newsapp.data.`object`.StateSave
import com.example.newsapp.ui.components.pictureComponent.PictureList
import com.example.newsapp.ui.components.pictureComponent.TopTab

// 图片界面
@Composable
fun PictureScreen(modifier: Modifier = Modifier) {
    var context = LocalContext.current
    var navControllerPicture = rememberNavController()

    StateSave.gesturesEnable = true
    CompositionLocalProvider(
        LocalNavControllerPicture provides navControllerPicture
    ) {
        Column {
            // 顶部标签栏
            TopTab()

            // 图片显示
            PictureList()

        }
    }

}